srprop=sectiontitle
* Correct the documentation of srprop properties
* (bug 28817) Add reference help page link to API Modules
+* (bug 29935) Improve formatting of examples in ApiParamInfo
=== Languages updated in 1.19 ===
$result = $this->getResult();
$retval['classname'] = get_class( $obj );
$retval['description'] = implode( "\n", (array)$obj->getDescription() );
- $retval['examples'] = implode( "\n", (array)$obj->getExamples() );
+ $examples = (array)$obj->getExamples();
+ $retval['examples'] = implode( "\n", $examples );
$retval['version'] = implode( "\n", (array)$obj->getVersion() );
$retval['prefix'] = $obj->getModulePrefix();
$retval['helpurls'] = (array)$obj->getHelpUrls();
$result->setIndexedTagName( $retval['helpurls'], 'helpurl' );
+ $retval['allexamples'] = $examples;
+ $result->setIndexedTagName( $retval['allexamples'], 'example' );
+
$retval['parameters'] = array();
$paramDesc = $obj->getFinalParamDescription();
foreach ( $allowedParams as $n => $p ) {